package polymorphic.Class.staticFieldsAndStaticMethods;

public class Demo {
    public static void main(String[] args) {
        People ming = new People("Xiao Ming", 12);
        People hong = new People("Xiao Hong", 15);
        People.setNumber(100);
        People.number = 88;
        System.out.println(People.number);
        People.number = 99;
        System.out.println(People.number);
    }
}

class People {
    public static int number;
    String name;
    int age;

    public People(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public static void setNumber(int value) {
        number = value;
    }
}
